import './App.css';
// import { Link, Route, withRouter, Redirect } from 'react-router-dom'
// import Home from './pages/Home';
// import RouterView from './router'
import routes from './router/routes'

import RouterView from './router/index2'

function App(props) {
  return (
    <div className="App">
      {/* <RouterView routes = { routes }/> */}
    

      <RouterView routes = { routes }/>









      {/* <Link to={{
        pathname: "/home",
        state: {
          id: 100
        }
      }}>点我跳转</Link> */}

      {/* <button onClick={() => {
        props.history.push({
          pathname: "/home",
          asd: {
            id: 200
          }
        })
      }}>点我跳转</button>


      <Route path="/home" component={Home} />
      <Redirect to={{
        pathname: "/home",
        state: {
          id: 888
        }
      }} from="/"/> */}
    </div>
  );
}

export default App
